# -*- coding: utf-8 -*-


from django.test import TestCase
import re
import pymssql
# Create your tests here.

string = "大众科学12.7元0.5元"

print(re.findall(r'(\d+\.?\d)元', string))


conn_info = {"user":"nlp422", "pwd":"nlp422", "host":"192.168.137.99:1896",
             "db":"\u4E13\u5229\u6570\u636E\u5E93"}

'url=jdbc:jtds:sqlserver://192.168.137.99:1896; DatabaseName=\u4E13\u5229\u6570\u636E\u5E93'
server = '192.168.137.99:1896'
user = 'nlp422'
pwd = 'nlp422'
db = '专利数据库'

print(db.encode('ascii'))